package nuist.hanniko.stu.webbackend.model.LwM2m.request;

public class WriteRequest extends BaseRequest {

    private String mode;
    private String nodeKind;
    private String nodeValue;

    public WriteRequest(String endpoint, String path, String nodeKind, String nodeValue) {
        super(endpoint, "write", path);
        this.mode = "REPLACE";
        this.nodeKind = nodeKind;
        this.nodeValue = nodeValue;
    }

    public WriteRequest(String endpoint, String objectId, String resourceId, String nodeKind, String nodeValue) {
        super(endpoint, "write", objectId, resourceId);
        this.mode = "REPLACE";
        this.nodeKind = nodeKind;
        this.nodeValue = nodeValue;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getNodeKind() {
        return nodeKind;
    }

    public void setNodeKind(String nodeKind) {
        this.nodeKind = nodeKind;
    }

    public String getNodeValue() {
        return nodeValue;
    }

    public void setNodeValue(String nodeValue) {
        this.nodeValue = nodeValue;
    }
}
